package net.osweb.crm.modules.email.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Receivedemailuid entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "email_receivedemailuid")
public class ReceivedEmailId implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -3293996317104981177L;
	private String id;
	private String mailAccountName;
	private Integer userId;
	private Timestamp createtime;
	private String comment;

	// Constructors

	/** default constructor */
	public ReceivedEmailId() {
	}

	/** minimal constructor */
	public ReceivedEmailId(String id, String mailAccountName,
			Timestamp createtime) {
		this.id = id;
		this.mailAccountName = mailAccountName;
		this.createtime = createtime;
	}

	/** full constructor */
	public ReceivedEmailId(String id, String mailAccountName, Integer userId,
			Timestamp createtime, String comment) {
		this.id = id;
		this.mailAccountName = mailAccountName;
		this.userId = userId;
		this.createtime = createtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "mail_account_name", nullable = false, length = 127)
	public String getMailAccountName() {
		return this.mailAccountName;
	}

	public void setMailAccountName(String mailAccountName) {
		this.mailAccountName = mailAccountName;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "createtime", nullable = false, length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}